;( function( CFG, V, C, M, lib )
{
    // 初始化全局框架
    top.window.getFrame( document.getElementsByTagName("iframe") );

    // 实例化控制器
    var CONTROL = new C.main();

    // 视图 引入 全局模块
    lib.H.objectExtent( CONTROL, lib );
    // 控制器 引入 数据模型
    CONTROL.M = new M.main();
    // 实例化视图
    var VIEW = new V.main();

    // 视图 引入 全局模块
    lib.H.objectExtent( VIEW, lib );
    // 视图 引入 控制器
    VIEW.Control = CONTROL;

    // 初始化视图属性
    VIEW.init({
        ids : CFG.ids,
        paths : CFG.paths,
        templates : CFG.templateClass
    });

})(
    {
        ids : ["topNum", "analysisCode", "searchModal1content", "searchModal2content", "searchModal1", "searchModal2", "searchModalCheckAll", "searchModalReCheck", "searchModalSubmit","searchModalClose","searchModalbtn","searchModaltextarea", "colorLevels","RelationalPath", "saveConditioncontainer", "saveallsearchdropdown", "saveallsearch", "chartstitle", "condparent", "saveCharts", "exitCharts", "chartsContainer", "dropdown", "chartsList", "getRanktype", "getRankname", "topNum", "saveModelBtn", "saveDwhereForm", "setTitle", "setStyle", "setIco", "saveModelForm", "saveModel", "submitModel", "tabs2", "resetSide", "resetallsearchwrap", "tablecontainer", "obtns", "analysisType", "submitSide", "xAxisCond", "yAxisCond", "condwrapper", "configMode", "allsearchform", "closeallsearchwrap", "sreachwrap", "submitallsearchwrap", "search", "sreachwrap", "valueAxis", "dataValue", "addStep", "stepTab", "tabContent2", "submitStep", "setStep", "sliderbar", "condcontainer", "tableViewContainer", "tableAxisContainer", "editSide","closeEditMode", "closeSide", "dataAxis" ],
        paths : {
            getViewDataPath : document.getElementById("getViewDataPath").value,
            getTableDatapath : document.getElementById("getTableDataPath").value,
            getSavaModelPath : document.getElementById("getSavaModelPath").value,
            getrelationPath : document.getElementById("getrelationPath").value
        },
        templateClass : "templates"
    },
    { main: View },
    { main: Control },
    { main: Model },
    // 引入所需模块
    { $ : jQuery, H : Handle, toastr : toastr, DataGrid : DataGrid, ChartsControl : ChartsControl, echarts : echarts, CanvasDown : CanvasDown, Relational : Relational, TableColorLevelRender : TableColorLevelRender, CascadeData : CascadeData     }
);

